import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
import { BaseEntity } from 'src/entities/base.entity';

@Entity()
export class Student extends BaseEntity {
      
    @Column({
      type: "int",

      nullable: true,
      comment: "年龄",
    })
    age: number
          
    @Column({
      type: "varchar",
      length: 255,
      
      nullable: true,
      comment: "班级",
    })
    class: string
          
    @PrimaryGeneratedColumn({
      type: "int",
      comment: "id",
    })
    id: number;
          
    @Column({
      type: "varchar",
      length: 255,
      
      nullable: true,
      comment: "姓名",
    })
    name: string
      
}
